#ifndef __PSE_ROBOT_CACHEER_H__
#define __PSE_ROBOT_CACHEER_H__

#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "pseCacheer.h"

class PseRobotCacheer : public PseCacheer {
    protected:
        int size;
        time_t expired_time;
    public:
        PseRobotCacheer();
        ~PseRobotCacheer();
        int robot_cached(char *ip, int ip_len, const char *robot_filename);
        bool dump_report(char *cache_name, char* filename);
        bool dump_file(char *filename);
        bool load_file(const char* filename);
};

#endif
